package com.practice.page;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 统一配置的分页响应类
 *
 * @author Masiyu
 * @date 2023/9/26 13:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> implements Serializable {
    private int pageNum;
    private int pageSize;
    private String orderBy;
    private long total;
    private int pages;
    private List<T> list;
}
